<?php if ($object['type'] == "redirect"): ?>
	<?php $this->display("objects/discussion/ghost", array("object" => $object)); ?>
<?php else: ?>
	<tr class="entry hentry<?php if ($sticky): ?> sticky<?php endif; ?><?php if ($object['unread']): ?> unread<?php endif; ?>">
	<td class="date"><abbr class="published" title="<?php echo makeDate($object['t_create'], 'Y-m-d\TH:i:sO') ?>">
	<span class="datebox <?php if (isToday($object['t_create'])): ?>today<?php endif; ?>"><?php echo makeDate($object['t_create'], 'M') ?><span class="day"><?php echo makeDate($object['t_create'], 'd') ?></span></span>
	</abbr></td>
	<td class="discussion">
	<?php if ($sticky): ?>
		<img src="<?php echo $ui['images'] ?>announce.png" alt="Sticky: " />
	<?php endif; ?>
	<?php if ($object['readonly']): ?>
		<img src="<?php echo $ui['images'] ?>padlock.gif" alt="Locked: " />
	<?php endif; ?>
	<a href="<?php echo Gene::makeLink($object) ?><?php if ($object['unread']): ?>/view/unread<?php endif; ?>" rel="bookmark" class="headline"><?php _e(truncate($object['title'], 48)) ?></a><br />
	<?php if ($object['description']): ?>
		<em><?php _e(truncate($object['description'], 30)) ?></em> - 
	<?php endif; ?>
	<?php if ($object['owner_id']): ?>
		<?php _e($object['name']) ?>
	<?php else: ?>
		"<?php _e($object['guest_name']) ?>" (Guest)
	<?php endif; ?>
	</td>
	<td class="comments"><?php echo $object['numchilds'] ?></td>
	<td class="lastcomment">
<?php if ($object['lastcomment'] && checkPermission($object['lastcomment'], "view")): ?>
	<a href="<?php echo Gene::makeLink($object['lastcomment']) ?>"><?php echo timeAgo($object['lastcomment']['t_create']) ?> ago</a><br />
	<?php if ($object['lastcomment']['owner_id']): ?>
		<?php _e($object['lastcomment']['name']) ?>
	<?php else: ?>
		"<?php _e($object['lastcomment']['guest_name']) ?>" (Guest)
	<?php endif; ?>
<?php endif; ?>
</td></tr>
<?php endif; ?>